package com.qianxun.api.error;

/**
 * 结果适配异常
 * @author: huwei
 * @date: 2019/9/18 15:42
 * @version: 1.0.0
 */
public class ResultAdaptException extends RuntimeException {
    /**
     * 期望返回结果
     */
    private Class<?> returnTypeClass;
    /**
     * 返回结果
     */
    private String returnResult;

    public ResultAdaptException(Class<?> returnTypeClass , String returnResult , String message){
        super(message);
        this.returnTypeClass = returnTypeClass;
        this.returnResult = returnResult;
    }

    public Class<?> getReturnTypeClass() {
        return returnTypeClass;
    }

    public ResultAdaptException setReturnTypeClass(Class<?> returnTypeClass) {
        this.returnTypeClass = returnTypeClass;
        return this;
    }

    public String getReturnResult() {
        return returnResult;
    }

    public ResultAdaptException setReturnResult(String returnResult) {
        this.returnResult = returnResult;
        return this;
    }
}
